package com.qf.controller;

import com.qf.entity.TbStudent;
import com.qf.service.TbGroupService;
import com.qf.service.TbStudentService;
import com.qf.utils.Result;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

import javax.servlet.annotation.MultipartConfig;

/**
 * @author 10202
 * @version V1.0
 * @Project management-system
 * @Package com.qf.controller
 * @Date 2023/5/21 10:36
 */
@RestController
@RequestMapping("/reply")
@MultipartConfig
public class GroupController {
    @Autowired
    private TbGroupService tbGroupService;

    @GetMapping("/getGroupByGid")
    public Result getGroupByGid(@RequestParam String snum,Long pageNum,Long PageSize){


        return  tbGroupService.selectSnum(snum,pageNum,PageSize);
    }

    @DeleteMapping("/deleteGroupByGid")
    public Result deleteGroupByGid(@RequestParam Long gnum){
        return tbGroupService.deleteGroupByGid(gnum);
    }

    @PutMapping("/updateReplyGroupInfo")
    public Result updateReplyGroupInfo(@RequestParam Long sid){


        return tbGroupService.updateReplyGroupInfo(sid);

    }


}
